﻿@model BackEnd.Models.ContentModel
@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script>
    $(document).ready(function () {        
        CreateTextarea("Contents", 450, 300);
    });
</script>
<h2>Edit Content</h2>
@using (Html.BeginForm("Edit", "Contents", FormMethod.Post))
{ 
    <table>
        <tr>
            <td>@Html.LabelFor(m => m.ContentTypeId)</td>
            <td>@Html.DropDownListFor(m=>m.ContentTypeId, new SelectList(Model.ListContentType, "Id", "ContentTypeName"))</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(m => m.Contents)</td>
            <td>@Html.TextBoxFor(m => m.Contents)
                    @Html.ValidationMessage("Content", new { style="color:#CC0000"})</td>
        </tr>
        <tr>
            <td></td>
            <td>
                <img class="NFButtonLeft NFh" src="/Content/Img/0.png"><input type="submit" class="NFButton NFh" value="Edit" /><img class="NFButtonRight NFh" src="/Content/Img/0.png">
                @Html.ActionLink("Back", "Index", "Contents")
            </td>
        </tr>
    </table>
}
